package com.unitedvision.persistence.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.unitedvision.core.domain.Status;
import com.unitedvision.persistence.domain.CompanyCustomerEntity;
import com.unitedvision.persistence.domain.CompanyEntity;
import com.unitedvision.persistence.domain.CustomerEntity;

public interface CompanyCustomerRepository extends JpaRepository<CompanyCustomerEntity, Integer> {
	CompanyCustomerEntity findByCustomerAndCompany(CustomerEntity customer, CompanyEntity company);
	List<CompanyCustomerEntity> findByCustomerAndStatus(CustomerEntity customerEntity, Status status);
	List<CompanyCustomerEntity> findByCompanyAndStatus(CompanyEntity company, Status status);
}
